package com.scgl.process.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scgl.process.mapper.ScglRouteMapper;
import com.scgl.process.domain.ScglRoute;
import com.scgl.process.service.IScglRouteService;

/**
 * 工艺路线Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-01
 */
@Service
public class ScglRouteServiceImpl implements IScglRouteService 
{
    @Autowired
    private ScglRouteMapper scglRouteMapper;

    /**
     * 查询工艺路线
     * 
     * @param desname 工艺路线主键
     * @return 工艺路线
     */
    @Override
    public ScglRoute selectScglRouteByDesname(String desname)
    {
        return scglRouteMapper.selectScglRouteByDesname(desname);
    }

    /**
     * 查询工艺路线列表
     * 
     * @param scglRoute 工艺路线
     * @return 工艺路线
     */
    @Override
    public List<ScglRoute> selectScglRouteList(ScglRoute scglRoute)
    {
        return scglRouteMapper.selectScglRouteList(scglRoute);
    }

    /**
     * 新增工艺路线
     * 
     * @param scglRoute 工艺路线
     * @return 结果
     */
    @Override
    public int insertScglRoute(ScglRoute scglRoute)
    {
        return scglRouteMapper.insertScglRoute(scglRoute);
    }

    /**
     * 修改工艺路线
     * 
     * @param scglRoute 工艺路线
     * @return 结果
     */
    @Override
    public int updateScglRoute(ScglRoute scglRoute)
    {
        return scglRouteMapper.updateScglRoute(scglRoute);
    }

    /**
     * 批量删除工艺路线
     * 
     * @param desnames 需要删除的工艺路线主键
     * @return 结果
     */
    @Override
    public int deleteScglRouteByDesnames(String[] desnames)
    {
        return scglRouteMapper.deleteScglRouteByDesnames(desnames);
    }

    /**
     * 删除工艺路线信息
     * 
     * @param desname 工艺路线主键
     * @return 结果
     */
    @Override
    public int deleteScglRouteByDesname(String desname)
    {
        return scglRouteMapper.deleteScglRouteByDesname(desname);
    }
}
